// LoginManager.h: interface for the LoginManager class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LOGINMANAGER_H__38F6C334_D0DE_4317_B72B_6F149B3A3CBE__INCLUDED_)
#define AFX_LOGINMANAGER_H__38F6C334_D0DE_4317_B72B_6F149B3A3CBE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

struct LoginStruct;

class LoginManager  
{
protected:
	LoginManager();
	virtual ~LoginManager(); 

public:
  static LoginManager * Instance();
  static void DeleteInstance();

  int Login(const CString& strServerIPAddress, int nPort, int nNetworkMode, LoginStruct * pLoginStruct);
	int Logout(const CString& strUserName);

private:
  static LoginManager * m_pInstance;
};

#endif // !defined(AFX_LOGINMANAGER_H__38F6C334_D0DE_4317_B72B_6F149B3A3CBE__INCLUDED_)
